package top.sqdpt.auth.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.sqdpt.auth.service.AuthService;
import top.sqdpt.commom.Result;

@RestController
@RequestMapping("/auth")
public class AuthController {
    @Autowired
    private AuthService authService;

    @PostMapping("/login")
    public Result<String> login() {
        String token = authService.login("sqdpt", "123456");
        return Result.success(token);
    }

}
